<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="User Info" %>
<%@ Import Namespace="Friendster.Service"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <fs:FriendsterApplication runat="server" ID="fsApplication" ApplicationKey="0c868a9a9f2d332000cd09e1ed602ddc"
    ApplicationName="Creating .NET Client" Secret="7234cc4ad7689d0f8031b2023e252a3d" CallbackUrl="http://localhost:1653/StepByStep/" />
<%
    Response.Write("<div style=\"padding-left:20px\"><strong>User Infomation</strong><br /><br />");
    User user;
    if (Request.QueryString["id"]!=null)
    {
        string uid = Request.QueryString["id"].ToString();
        user = fsApplication.Service.Users.GetUser(uid);
    }
    else
    {
        user = fsApplication.Service.Users.GetUser();
    }
    Response.Write("<strong>Name: </strong>" + user.Name + "<br />");
    Response.Write("<strong>Birthday: </strong>" + user.Birthday.Day + "/" + user.Birthday.Month + "/" + user.Birthday.Year + "<br />");
    Response.Write("<strong>Relationship status: </strong>" + user.Relationship + "<br />");
    Response.Write("<strong>Member since: </strong>" + user.Membersince.Year + "<br />");
    Response.Write("<strong>Hometown: </strong>" + user.Hometown + "<br />");
    Response.Write("</div>");
%>
</asp:Content>